package com.scommunity.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.Objects;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;

/**
 * 物资表
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "sc_prop")
public class Prop implements Serializable{
    private static final long serialVersionUID = 1L;
    @TableId(type = IdType.AUTO)
    private Long propId;
    private String propNum;
    private String propName;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private String fixTime;
    private Long fixTerm;
    private String propStatus;
    
    public Prop(Prop prop) {
        if (Objects.nonNull(prop)) {
            this.propId=prop.propId;
            this.propNum=prop.propNum;
            this.propName=prop.propName;
            this.fixTime=prop.fixTime;
            this.fixTerm=prop.fixTerm;
            this.propStatus=prop.propStatus;
        }
    }
}
